#include<stdio.h>
int main(){
	int sum_poor=0;
	int sum_full=0;
	int poor_pay=100000;
	int full_pay=1;   //题目中说的是一分，但是答案给的是一元算的
	int day;
	scanf("%d",&day);
	for(int i=0;i<day;i++){
		sum_poor+=poor_pay;
		sum_full+=full_pay;
		full_pay*=2;
	}
	printf("%d\n%d",sum_poor,sum_full);
	return 0;
}
